package com.mz.mattress.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mz.mattress.api.entity.ActivityItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ActivityItemMapper extends BaseMapper<ActivityItem> {

    @Select("select * from mz_activity_item where activity_id=#{activityId} and deleted=0")
    List<ActivityItem> selectByActivityId(@Param("activityId") Integer activityId);

}
